8fc07fda976d1511638ce2313722460ce086bd6c,src/main/java/net/rubyeye/xmemcached/XMemcachedClient.java,XMemcachedClient,touch,#String#number#number#,1902
Before Change
CountDownLatch latch = new CountDownLatch(1);
final Command command = this.commandFactory.createTouchCommand(key,
keyBytes, latch, exp, false);
this.sendCommand(command);
this.latchWait(command, opTimeout);
command.getIoBuffer().free();
this.checkException(command);
if (command.getResult() == null) {
After Change
}
}
public boolean touch(String key, int exp, long opTimeout)
throws TimeoutException, InterruptedException, MemcachedException {
key = this.preProcessKey(key);
final byte[] keyBytes = ByteUtils.getBytes(key);
ByteUtils.checkKey(keyBytes);
CountDownLatch latch = new CountDownLatch(1);
final Command command = this.commandFactory.createTouchCommand(key,
keyBytes, latch, exp, false);
this.latchWait(command, opTimeout,this.sendCommand(command));
command.getIoBuffer().free();
this.checkException(command);
if (command.getResult() == null) {